package com.hjm.project.finance.agentDeductionsDetails.mapper;

import com.hjm.project.finance.agentDeductionsDetails.domain.AgentDeductionsDetails;

import java.util.List;

/**
 * 扣款终端明细Mapper接口
 *
 * @author maker-platform
 * @date 2022-10-21
 */
public interface AgentDeductionsDetailsMapper
{
    /**
     * 查询扣款终端明细
     *
     * @param id 扣款终端明细ID
     * @return 扣款终端明细
     */
    public AgentDeductionsDetails selectAgentDeductionsDetailsById(Integer id);

    /**
     * 查询扣款终端明细列表
     *
     * @param agentDeductionsDetails 扣款终端明细
     * @return 扣款终端明细集合
     */
    public List<AgentDeductionsDetails> selectAgentDeductionsDetailsList(AgentDeductionsDetails agentDeductionsDetails);

    /**
     * 查询扣款终端明细列表
     *
     * @param agentDeductionsDetails 扣款终端明细
     * @return 扣款终端明细查询一个结果
     */
    public AgentDeductionsDetails selectAgentDeductionsDetailsOne(AgentDeductionsDetails agentDeductionsDetails);

    /**
     * 新增扣款终端明细
     *
     * @param agentDeductionsDetails 扣款终端明细
     * @return 结果
     */
    public int insertAgentDeductionsDetails(AgentDeductionsDetails agentDeductionsDetails);

    /**
     * 修改扣款终端明细
     *
     * @param agentDeductionsDetails 扣款终端明细
     * @return 结果
     */
    public int updateAgentDeductionsDetails(AgentDeductionsDetails agentDeductionsDetails);

    /**
     * 删除扣款终端明细
     *
     * @param id 扣款终端明细ID
     * @return 结果
     */
    public int deleteAgentDeductionsDetailsById(Integer id);

    /**
     * 批量删除扣款终端明细
     *
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteAgentDeductionsDetailsByIds(String[] ids);

    /**
     * 批量删除扣款终端明细
     *
     * @param id 需要删除的数据AD_ID
     * @return 结果
     */
    public int deleteAgentDeductionsDetailsByAdId(Integer id);
    }
